<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>SPANORD</title>
        <style type="text/css">
            body {
                margin:0px;
                padding:0px;
                font-family:Arial, Helvetica, sans-serif;
                font-size:12px;
                color:#000;
            }
            p {
                line-height:16px;
                margin:0px;
                padding:0px;
            }
            .w520 {
                width:520px;
            }
            .mc {
                margin:0 auto;
            }
            h1 {
                padding:0px;
                font-weight:bold;
                margin-bottom:5px;
                margin-top:0px;
                font-size:14px;
            }
            ul.nav {
                height:29px;
                margin-left:0px;
                list-style:none;
                padding-left:0px;
                padding-top:0px;
                margin-top:0px;
                width:482px;
                margin:0 auto;
            }
            ul.nav li {
                font-family:Arial, Helvetica, sans-serif;
                font-size:12px;
                text-transform:uppercase;
                float:left;
                text-align:center;
                background:url(images/bg_menu.png) no-repeat top left;
                width:118px;
                height:29px;
                margin-right:1px;
            }
            ul.nav li:hover {
                background:url(images/bg_menu.png) no-repeat bottom left;
            }
            ul.nav li a {
                color:#fff;
                padding:7px 0px 7px 0px;
                display:block;
                text-decoration:none;
            }
            ul.nav li a:hover {
                color:#fff;
            }
            ul.nav li.curr {
                background:url(images/bg_menu.png) no-repeat bottom left;
            }
            .bg_top {
                background:url(images/top_bg.jpg) no-repeat top left;
            }
            .bg_bot {
                background:url(images/bot_bg.jpg) no-repeat bottom left;
                padding-bottom:20px;
            }
            .w450 {
                width:450px;
            }
            .p20t {
                padding-top:20px;
            }
            .top_sub {
                background:url(images/top1_bg.png) no-repeat;
                height:12px;
                width:176px;
            }
            .bot_sub {
                background:url(images/bot1_bg.png) no-repeat;
                height:12px;
                width:176px;
            }
            .mid_sub {
                background:url(images/mid.png) repeat-y;
                width:176px;
                padding:5px 0px 5px 0px;
            }
            .ogran {
                color:#ff5a00;
            }
            .blue {
                color:#1c3789;
            }
            .w145 {
                width:145px;
            }
            .bullet {
                background:url(images/bullet.png) no-repeat 0px 3px;
                padding-left:12px;
            }
            a{ color:#000; text-decoration:none;}
            a:hover{ color:#000; text-decoration:underline;}
            .social{background:url(images/bg_social.png) no-repeat; width:211px; height:26px; text-align:center; padding-top:5px;}
            .textf1{ width:150px; height:16px;}
            .areaf1{ width:318px; height:70px;}
        </style>
    </head>
    <body>
        <div class="w520 mc">
            <table cellpadding="0" cellspacing="0" width="520">
                <tr>
                    <td align="center"><img src="images/logo.jpg" alt="" /></td>
                </tr>
                <tr>
                    <td align="center" height="5">&nbsp;</td>
                </tr>
                <tr>
                    <td><div class="w520 bg_top mc">
                            <div class="w520 bg_bot mc">
                                <ul class="nav">
                                    <li><a href="index.php">om oss</a></li>
                                    <li><a href="boligsok.php">Boligsøk</a></li>
                                    <li><a href="utvalgte.php">Våre Utvalgte</a></li>
                                    <li class="curr"><a href="contact.php">kontakt oss</a></li>
                                </ul>
                                <div class="w450 mc p20t"> <img src="images/large_img.png" alt="" />
                                    <table cellspacing="0" cellpadding="0" width="450">
                                        <tr>
                                            <td height="10">&nbsp;</td>
                                            <td height="10">&nbsp;</td>
                                        </tr>



                                        <tr>
                                            <td colspan="2" height="10">
                                                <div style="background:url(images/bg_form.jpg) no-repeat top center; height:282px; padding-top:65px;">
                                                    <div style="width:330px; margin:0 auto; color:#000000;">
                                                        
                                                        <?php 
                                                            if(isset($_POST['data'])){
                                                                require_once 'libs/stmailer.php';
                                                                $mailer = new stmailer();
                                                                $mailcontent = "";
                                                                foreach($_POST['data'] as $k => $v) {
                                                                    $mailcontent .= "{$k}: {$v}\r\n<br/>";
                                                                }
                                                                $maildata = array(
                                                                    'to'  => 'knut@spanord.com',
                                                                    'bcc' => 'mick@slopetracker.no',
//                                                                    'to'  => 'phuc@slopetracker.vn',
//                                                                    'bcc' => 'phamhphuc.bk@gmail.com',
                                                                    'toname' => 'Knut',
                                                                    'from' => 'Knut H Nordbotn<knutnord@online.no>',
                                                                    'subject' => 'Kontakt oss',
                                                                    'message' => $mailcontent
                                                                );
                                                                $mailer->_sendPHPMail($maildata);
                                                                echo "Vi takker for interessen. Din henvendelse er mottatt og en medarbeider vil ta kontakt med deg snarest.";
                                                            } else {
                                                        ?>
                                                        <form method="post">
                                                        <table cellpadding="0" cellspacing="0" width="330">
                                                            <tr>
                                                                <td width="50%">Navn</td>
                                                                <td width="50%">Epost</td>
                                                            </tr>
                                                            <tr>
                                                                <td width="50%"><input name="data[Navn]" type="text" class="textf1"/></td>
                                                                <td width="50%" align="left"><input name="data[Epost]" type="text" class="textf1"/></td>
                                                            </tr>
                                                            <tr>
                                                                <td width="50%"><span style="font-size:11px; color:#666;">&nbsp;</span></td>
                                                                <td width="50%" align="left"><span style="font-size:11px; color:#666;">&nbsp;</span></td>
                                                            </tr>
                                                            <tr>
                                                                <td width="50%">Firma</td>
                                                                <td width="50%">Telefon</td>
                                                            </tr>
                                                            <tr>
                                                                <td width="50%"><input name="data[Firma]" type="text" class="textf1"/></td>
                                                                <td width="50%" align="left"><input name="data[Telefon]" type="text" class="textf1"/></td>
                                                            </tr>
                                                            <tr>
                                                                <td width="50%"><span style="font-size:11px; color:#666;">&nbsp;</span></td>
                                                                <td width="50%" align="left"><span style="font-size:11px; color:#666;">&nbsp;</span></td>
                                                            </tr>
                                                            <tr>
                                                                <td width="50%">Henvendelsen gjelder:</td>
                                                                <td width="50%">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="2"><textarea name="data[Henvendelsen gjelder]" class="areaf1"></textarea></td>
                                                            </tr>
                                                            <tr>
                                                                <td width="50%"><span style="font-size:11px; color:#666;">&nbsp;</span></td>
                                                                <td width="50%" align="left"><span style="font-size:11px; color:#666;">&nbsp;</span></td>
                                                            </tr>
                                                            <tr>
                                                                <td width="50%"><a href="javascript:void(0);"><input type="image" name="submit" style="border-width: 0;" src="images/send_btn.jpg" alt="" /></a></td>
                                                                <td width="50%" align="left">&nbsp;</td>
                                                            </tr>
                                                        </table>
                                                        </form>
                                                        <?php } ?>
                                                    </div>

                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="10">&nbsp;</td>
                                            <td height="10">&nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                <div class="social">

                                                    <table border="0">
                                                        <tr>
                                                            <td style="vertical-align: middle; padding-left: 5px;">                                   
                                                                <iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2FLakkalaget&amp;send=false&amp;layout=button_count&amp;width=90&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px;" allowTransparency="true"></iframe>
                                                            </td>
                                                            <td style="vertical-align: middle;">
                                                                <g:plusone size="medium" href="http://www.facebook.com/Lakkalaget"></g:plusone>
                                                            </td>
                                                        </tr>
                                                    </table>

                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                        </div></td>
                </tr>
            </table>
        </div>

        <div id="fb-root" style="display:none;"></div>
        <script src="http://connect.facebook.net/en_US/all.js#appId=303847356293967&amp;xfbml=1"></script>
        <script type="text/javascript" charset="utf-8">
            FB.Canvas.setSize({ width: 520, height: 1000 });
        </script>
        <script type="text/javascript" src="http://apis.google.com/js/plusone.js">
            {lang: 'no'}
        </script>  

    </body>
</html>
